package Mangos::DB::Characters::CharacterBattlegroundData;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'character_battleground_data',

    columns => 
    [
        guid        => { type => 'integer', not_null => 1 },
        instance_id => { type => 'integer', default => '0', not_null => 1 },
        team        => { type => 'integer', default => '0', not_null => 1 },
        join_x      => { type => 'float', default => '0', not_null => 1, precision => 32 },
        join_y      => { type => 'float', default => '0', not_null => 1, precision => 32 },
        join_z      => { type => 'float', default => '0', not_null => 1, precision => 32 },
        join_o      => { type => 'float', default => '0', not_null => 1, precision => 32 },
        join_map    => { type => 'integer', default => '0', not_null => 1 },
        taxi_start  => { type => 'integer', default => '0', not_null => 1 },
        taxi_end    => { type => 'integer', default => '0', not_null => 1 },
        mount_spell => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'guid' ],
);

1;

package Mangos::DB::Characters::CharacterBattlegroundData::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::CharacterBattlegroundData' }

__PACKAGE__->make_manager_methods('character_battleground_data');

1;
